<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>${sysname}</title>
<%@ include file="/WEB-INF/jsp/include/css.jsp"%>
<%@ include file="/WEB-INF/jsp/include/js.jsp"%>
<%@ include file="/WEB-INF/jsp/include/datepicker.jsp"%>
<script type="text/javascript">
	$().ready(function() {
		$("input[name=saleDate]").datepicker();
	});
</script>
</head>

<body>
	<my:navigation text="账户管理>>　销售管理 >> 添加销售单" percent="90" />
	<form action="drugSaleManage_edit.do" method="post" onsubmit="">
	    <input type="hidden" name="id" value="${drugSale.id}"/>
		<table width="500" align="center" style="margin-top:30px"
			class="inputTable">
			<tr>
				<th>药店名称：</th>
				<td><select class="text" name="deptId" readonly="readonly">
						<c:forEach items="${depts}" var="dept">
							<option value="${dept.deptId}" <c:if test="${drugSale.deptId eq dept.deptId}">selected</c:if>>${dept.deptName}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>店员：</th>
				<td><select class="text" name="empId" readonly="readonly">
						<c:forEach items="${emps}" var="emp">
							<option value="${emp.empId}" <c:if test="${drugSale.empId eq emp.empId}">selected</c:if> >${emp.empName}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>药品名称：</th>
				<td><select class="text" name="invoiceid" readonly="readonly">
						<c:forEach items="${drugIns}" var="drug">
							<option value="${drug.invoiceid}" <c:if test="${drugSale.invoiceid eq drug.invoiceid}">selected</c:if> >${drug.drugName}</option>
						</c:forEach>
				</select></td>
			</tr>
			<tr>
				<th>数量：</th>
				<td><input name="amount" type="text" value="${drugSale.amount}" readonly="readonly"/></td>
			</tr>
			<tr>
				<th>价钱：</th>
				<td><input name="price" type="text" value="${drugSale.price}"/></td>
			</tr>
			<tr>
				<th>出售日期：</th>
				<td><input name="saleDate" type="text" readonly="readonly" value="${my:fmtDate(drugSale.saleDate)}"/></td>
			</tr>
			<tr>
				<th>备注：</th>
				<td><textarea class="text" name="remark"
						style="width:300px;height:46px" />${drugSale.remark}</textarea></td>
			</tr>
		</table>
		<table border="0" width="500" align="center" style="margin-top:20px">
			<tr>
				<td align="center"><input type="submit" class="btn ok"
					value="确定" /> <input type="button" class="btn cancel" value="取消"
					onclick="location='${ctx}/drugSaleManage_list.do'" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
